About 1558 letters

About 8 minutes

#HTML <style>

The <style> HTML element contains style information for a document, or part of a document. It contains CSS, which is applied to the contents of the document containing the <style> element.

#Attributes

  • blocking: This attribute explicitly indicates that certain operations should be blocked on the fetching of critical subresources. @import-ed stylesheets are generally considered as critical subresources, whereas background-image and fonts are not. The operations that are to be blocked must be a space-separated list of blocking tokens listed below.

    • render: The rendering of content on the screen is blocked.
  • media: This attribute defines which media the style should be applied to. Its value is a media query, which defaults to all if the attribute is missing.

  • nonce: A cryptographic nonce (number used once) used to allow inline styles in a style-src Content-Security-Policy. The server must generate a unique nonce value each time it transmits a policy. It is critical to provide a nonce that cannot be guessed as bypassing a resource's policy is otherwise trivial.

  • title: This attribute specifies alternative style sheet sets.

Created in 6/9/2025

Updated in 6/9/2025